package cn.com.tianpeidong.restaurantadmin.project.admin.menu.mapper;

import cn.com.tianpeidong.restaurantadmin.project.admin.menu.entity.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author tianpeidong
 * @version 创建时间: 19-4-7 下午8:26
 */
@Mapper
public interface PermissionMapper {
    int checkMenuUnderUse(@Param("menuId") Long menuId);

    int initMenuPermission(List<Permission> permissionList);

    Permission getById(@Param("id") Long permissionId);

    int deleteByMenuId(@Param("menuId") Long menuId);

    Set<String> listAllPermCode();
}
